package com.chinaunicom.bigcustomer.service.impl;

import java.math.BigDecimal;
import java.util.List;


import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.chinaunicom.bigcustomer.dao.CustomerMapper;
import com.chinaunicom.bigcustomer.model.Customer;
import com.chinaunicom.bigcustomer.service.ICustomerService;
@Service
public class CustomerServiceImpl implements ICustomerService {
	
	@Resource
	private CustomerMapper dao;
	
	@Override
	public int deleteByPrimaryKey(String vMobile) {
		// TODO Auto-generated method stub
		return dao.deleteByPrimaryKey(vMobile);
	}

	@Override
	public int insert(Customer record) {
		// TODO Auto-generated method stub
		return dao.insert(record);
	}

	@Override
	public int insertSelective(Customer record) {
		// TODO Auto-generated method stub
		return dao.insertSelective(record);
	}

	@Override
	public Customer selectByPrimaryKey(String vMobile) {
		// TODO Auto-generated method stub
		return dao.selectByPrimaryKey(vMobile);
	}

	@Override
	public int updateByPrimaryKeySelective(Customer record) {
		// TODO Auto-generated method stub
		return dao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Customer record) {
		// TODO Auto-generated method stub
		return dao.updateByPrimaryKey(record);
	}

	@Override
	public List<Customer> query(Customer customer) {
		// TODO Auto-generated method stub
		return dao.query(customer);
	}

	@Override
	public int updateApply(String mobile) {
		// TODO Auto-generated method stub
		return dao.updateApply(mobile);
	}

	@Override
	public Customer queryByPhoneAndId(String mobile, String id) {
		// TODO Auto-generated method stub
		return dao.queryByPhoneAndId(mobile,id);
	}

	@Override
	public int queryFactor(String mobile) {
		// TODO Auto-generated method stub
		return dao.queryFactor(mobile);
	}

	@Override
	public int updateIntf(Customer customer) {
		// TODO Auto-generated method stub
		return dao.updateIntf(customer);
	}

}
